<?php
namespace app\system\model;

use think\Model;

class DatabaseModel extends Model
{
    /**
     * @param $sql
     * @return mixed
     * @throws \think\db\exception\BindParamException
     * @throws \think\exception\PDOException
     */
    public function querySql($sql)
    {
        return $this->query($sql);
    }

    /**
     * @param $sql
     * @return int
     * @throws \think\db\exception\BindParamException
     * @throws \think\exception\PDOException
     */
    public function executeSql($sql)
    {
        return $this->execute($sql);
    }
}